<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改供应厂商列')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-factory-edit" th:object="${tbFactory}">
            <input name="fid" th:field="*{fid}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">厂商名称：</label>
                <div class="col-sm-8">
                    <input name="fname" th:field="*{fname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">统一社会信用码：</label>
                <div class="col-sm-8">
                    <input name="fno" th:field="*{fno}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">厂商类型：</label>
                <div class="col-sm-8">
                    <input name="ftype" th:field="*{ftype}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">产品品牌：</label>
                <div class="col-sm-8">
                    <input name="fbrand" th:field="*{fbrand}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">厂商注册地：</label>
                <div class="col-sm-8">
                    <input name="fadd" th:field="*{fadd}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">联系人：</label>
                <div class="col-sm-8">
                    <input name="fuser" th:field="*{fuser}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">联系方式：</label>
                <div class="col-sm-8">
                    <input name="ftel" th:field="*{ftel}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "user/factory";
        $("#form-factory-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-factory-edit').serialize());
            }
        }
    </script>
</body>
</html>